<!DOCTYPE HTML>
<html>
<head>
<meta name="author" content="<?php echo $this->SITE_NAME; ?>"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<script>
    var BASE_PATH = '<?php echo BASE_PATH;?>';
</script>

<title>Master Design</title>
<?php
    #echo $this->headTitle();
    echo $this->headScript();
    echo $this->headLink();
?>


<script type="text/javascript">
$(document).ready(function(){
     $("#MenuLinksBtn").click(function () {
        $("#access").toggle();
     });
     
    $("#MenuLinksBtn1").click(function () {
        $("#access1").toggle();
     });
});


$(window).resize(function() {
    var pageWidth = $(window).width();
   
    if( $(window).width()> 1000){
        $("#access").show();
    }
    if( $(window).width()< 1000){
       $("#access").hide();
    }
});
</script>






</head>
<body>
    <div id="ncleangrey-container">
	<!--Navigation Starts -->
	<a href="<?php echo $this->BASE_URL; ?>" class="logo">
	    <img src="<?php echo $this->IMAGE_PATH; ?>layout/logo.png" alt="<?php echo $this->SITE_NAME; ?> Admin Site" title="<?php echo $this->SITE_NAME; ?> Admin Site" />
	</a>
	<div id="logocontainer">
	    <div class="logotext">
		<?php echo $this->SITE_NAME;
		; ?>&trade; <?php echo ucfirst(strtolower($this->user->role)); ?> Console
		<br />
		Welcome: <?php echo $this->user->name; ?>
	    </div>
	</div>
        <div class="clear"></div>
        <a href="#nogo" class="MenuLinksBtn" id="MenuLinksBtn">Navigation</a>
	<div class="topmenucontainer" id="access">
	    <ul id="nav">
		<li>
		    <a href="<?php echo $this->url(array('controller' => 'index', 'action' => 'index'), null, TRUE); ?>" <?php if($this->CONTROLLER_NAME == 'index'):  ?>class="selected"<?php endif; ?> >Dashboard</a>
		</li>

		<li>
               <a href="<?php echo $this->url(array('controller' => 'customer', 'action' => 'list'), null, TRUE); ?>" <?php if($this->CONTROLLER_NAME == 'customer'):  ?>class="selected"<?php endif; ?> >Customer</a>
               <ul>
                    <li><a href="<?php echo $this->url(array('controller' => 'customer', 'action' => 'form'), null, TRUE); ?>">Add Customer</a></li>
                    <li><a href="<?php echo $this->url(array('controller' => 'customer', 'action' => 'list'), null, TRUE); ?>">Customer Listing</a></li>
               </ul>
		</li>
		
                <li>
                <a href="<?php echo $this->url(array('controller' => 'contractor', 'action' => 'list'), null, TRUE); ?>" <?php if($this->CONTROLLER_NAME == 'contractor'):  ?>class="selected"<?php endif; ?> >Contractor</a>
               <ul>
                    <li><a href="<?php echo $this->url(array('controller' => 'contractor', 'action' => 'form'), null, TRUE); ?>">Add Contractor</a></li>
                    <li><a href="<?php echo $this->url(array('controller' => 'contractor', 'action' => 'list'), null, TRUE); ?>">Contractor Listing</a></li>
               </ul>
		</li>
                
                <li>
                <a href="<?php echo $this->url(array('controller' => 'designer', 'action' => 'list'), null, TRUE); ?>" <?php if($this->CONTROLLER_NAME == 'designer'):  ?>class="selected"<?php endif; ?> >Designer</a>
               <ul>
                    <li><a href="<?php echo $this->url(array('controller' => 'designer', 'action' => 'form'), null, TRUE); ?>">Add Designer</a></li>
                    <li><a href="<?php echo $this->url(array('controller' => 'designer', 'action' => 'list'), null, TRUE); ?>">Designer Listing</a></li>
               </ul>
		</li>
                
                <li>
                <a href="<?php echo $this->url(array('controller' => 'product', 'action' => 'list'), null, TRUE); ?>" <?php if($this->CONTROLLER_NAME == 'product'):  ?>class="selected"<?php endif; ?> >Product</a>
               <ul>
                    <li><a href="<?php echo $this->url(array('controller' => 'product', 'action' => 'form'), null, TRUE); ?>">Add Product</a></li>
                    <li><a href="<?php echo $this->url(array('controller' => 'product', 'action' => 'list'), null, TRUE); ?>">Product Listing</a></li>
               </ul>
		</li>
                
                <li>
                <a href="<?php echo $this->url(array('controller' => 'job', 'action' => 'list'), null, TRUE); ?>" <?php if($this->CONTROLLER_NAME == 'job'):  ?>class="selected"<?php endif; ?> >Job</a>
               <ul>
                    <li><a href="<?php echo $this->url(array('controller' => 'job', 'action' => 'form'), null, TRUE); ?>">Add Job</a></li>
                    <li><a href="<?php echo $this->url(array('controller' => 'job', 'action' => 'list'), null, TRUE); ?>">Job Listing</a></li>
               </ul>
		</li>
                
                <li>
                <a href="<?php echo $this->url(array('controller' => 'calculator', 'action' => 'index'), null, TRUE); ?>" <?php if($this->CONTROLLER_NAME == 'calculator'):  ?>class="selected"<?php endif; ?> >Calculator</a>
		</li>
                
                <li>
                <a href="<?php echo $this->url(array('controller' => 'quotation', 'action' => 'list'), null, TRUE); ?>" <?php if($this->CONTROLLER_NAME == 'quotation'):  ?>class="selected"<?php endif; ?> >Quotation</a>
                <ul>
                     <li><a href="<?php echo $this->url(array('controller' => 'quotation', 'action' => 'form'), null, TRUE); ?>">Add Quotation</a></li>
                     <li><a href="<?php echo $this->url(array('controller' => 'quotation', 'action' => 'list'), null, TRUE); ?>">Quotation Listing</a></li>
                </ul>
		</li>
                
                <li>
                    <a href="<?php echo $this->url(array('controller' => 'project', 'action' => 'list'), null, TRUE); ?>" <?php if ($this->CONTROLLER_NAME == 'project'): ?>class="selected"<?php endif; ?> >Project</a>
                    <ul>
                        <li><a href="<?php echo $this->url(array('controller' => 'project', 'action' => 'form'), null, TRUE); ?>">Add Project</a></li>
                        <li><a href="<?php echo $this->url(array('controller' => 'project', 'action' => 'list'), null, TRUE); ?>">Project Listing</a></li>
                    </ul>
                </li>
                
                <li>
                    <a href="<?php echo $this->url(array('controller' => 'category', 'action' => 'list'), null, TRUE); ?>" <?php if ($this->CONTROLLER_NAME == 'category'): ?>class="selected"<?php endif; ?> >Category</a>
                    <ul>
                        <li><a href="<?php echo $this->url(array('controller' => 'category', 'action' => 'form'), null, TRUE); ?>">Add Category</a></li>
                        <li><a href="<?php echo $this->url(array('controller' => 'category', 'action' => 'list'), null, TRUE); ?>">Category Listing</a></li>
                    </ul>
                </li>
                
                <li>
		    <a href="<?php echo $this->url(array('controller' => 'role', 'action' => 'index'), null, TRUE); ?>" <?php if($this->CONTROLLER_NAME == 'role'):  ?>class="selected"<?php endif; ?> >Role Management</a>
		</li>
                
                <li>
                    <a href="<?php echo $this->url(array('controller' => 'preference', 'action' => 'profile'), null, TRUE); ?>" <?php if($this->CONTROLLER_NAME == 'preference'):  ?>class="selected"<?php endif; ?> >Site Preferences</a>
                    <ul>
                        <li><a href="<?php echo $this->url(array('controller' => 'preference', 'action' => 'profile'), null, TRUE); ?>">Edit Profile</a></li>
                        <li><a href="<?php echo $this->url(array('controller' => 'preference', 'action' => 'uom'), null, TRUE); ?>">UOM management</a></li>
                    </ul>
                </li>
                    
		<li>
		    <a href="<?php echo $this->url(array('controller' => 'logout', 'action' => 'index'), null, TRUE); ?>" <?php if($this->CONTROLLER_NAME == 'logout'):  ?>class="selected"<?php endif; ?> >Log Out</a>
		</li>
                
	    </ul>
	    <div class="clearb"></div>
	</div>
	<!--Navigation Ends-->
	<div class="breadcrumbs">
            <div id="nav-icons_all" class="display-none">
                <ul id="nav-icons">
                    <li class="logout-icon"><a  title="Logout"  href="<?php echo $this->url(array('controller' => 'logout', 'action' => 'index'), null, TRUE); ?>">Logout</a></li>
                </ul>
            </div>
	    <?php if(isset($this->breadcrumbs)):?>
		<?php echo GTL_Common::initializeBreadCrumbs($this->breadcrumbs);?>
	    <?php endif;?>
        </div>
        <div class="hstippled">&nbsp;</div>
    
    <?php echo $this->layout()->content ?>
<div id="footer">
    <div id="copy"> &copy;
	<a rel="external" href="<?php echo $this->BASE_URL; ?>" >
	    <?php echo $this->SITE_NAME; ?>

	</a>
	&trade;
    </div>
</div><!--end footer-->
</div>
</body>
</html>